package com.manager.devicemanager.service.impl;

import com.manager.devicemanager.common.DataSourceNameEnum;
import com.manager.devicemanager.entity.Devicestatus;
import com.manager.devicemanager.mapper.DevicestatusMapper;
import com.manager.devicemanager.service.IDevicestatusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.Collection;
import java.util.Date;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author wpf
 * @since 2025-05-29
 */
@Service
public class DevicestatusServiceImpl extends ServiceImpl<DevicestatusMapper, Devicestatus> implements IDevicestatusService {


    @Override
    public Devicestatus getDataList(String dataSourceName) {

        Devicestatus devicestatus = baseMapper.getDeviceStatusLastOne();

        return devicestatus;
    }

}
